/* 
 * File:   ExamTopic.h
 * Author: user
 *
 * Created on July 25, 2014, 6:15 AM
 */

#ifndef EXAMTOPIC_H
#define	EXAMTOPIC_H

#include <cstdlib>
#include <string>
#include <stdio.h>
#include "TestQuestion.h"
using namespace std;

class ExamTopic {
public:
    ExamTopic();
    ExamTopic(string topic, string desc);
    ExamTopic(const ExamTopic& orig);
    
    void setID(int id);
    void setTopic(string topic);
    void setDesc(string desc);
    void setSelectedQuestionID(int testQuestionID);
    void addQuestion(TestQuestion question);
    
    int getID();
    string getTopic();
    string getDesc();
    int getSelectedQuestionID();
    
    vector<TestQuestion>& getQuestions();
    
    virtual ~ExamTopic();
private:
    vector<TestQuestion> _questions;
    int _ID;
    string _topic;
    string _desc;
    int _selectedQuestionID;
};

#endif	/* EXAMTOPIC_H */

